home *** CD-ROM | disk | FTP | other *** search
- //========================================================================================
- //
- // Viewer description for 'FWvl' (ODF view layout) resources
- //
- // Author: Steve Crutchfield
- //
- // Copyright: (c) 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- //----------------------------------------------------------------------------
- // Definitions for useful script and language code pop-up menus.
- // (If ResEdit supported an #include mechanism, this could be
- // shared among serveral resource types.)
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("ScriptCode")
- Margin(0, 2, 0, 0)
- IntegerPopup("Script:", 53, fScriptCode)
- {
- IntItem("Roman", 0);
- IntItem("System script", -1);
- IntItem("Current script", -2);
- IntItem("Japanese", 1);
- IntItem("Traditional Chinese", 2);
- IntItem("Korean", 3);
- IntItem("Arabic", 4);
- IntItem("Hebrew", 5);
- IntItem("Greek", 6);
- IntItem("Cyrillic", 7);
- IntItem("Right/Left Symbols", 8);
- IntItem("Devanagari", 9);
- IntItem("Gurmukhi", 10);
- IntItem("Gujarati", 11);
- IntItem("Oriya", 12);
- IntItem("Bengali", 13);
- IntItem("Tamil", 14);
- IntItem("Telugu", 15);
- IntItem("Kannada", 16);
- IntItem("Malayalam", 17);
- IntItem("Sinhalese", 18);
- IntItem("Burmese", 19);
- IntItem("Khmer", 20);
- IntItem("Thai", 21);
- IntItem("Laotian", 22);
- IntItem("Georgian", 23);
- IntItem("Armenian", 24);
- IntItem("Simplified Chinese", 25);
- IntItem("Tibetan", 26);
- IntItem("Mongolian", 27);
- IntItem("Geez/Ethiopic", 28);
- IntItem("East European Roman", 29);
- IntItem("Vietnamese", 30);
- IntItem("Extended Arabic", 31);
- IntItem("Uninterpreted Symbols", 32);
- };
-
- DeclareNamedStatement("LanguageCode")
- Margin(0, 2, 0, 2)
- IntegerPopup("Language:", 53, fLanguageCode)
- {
- IntItem("English", 0);
- IntItem("French", 1);
- IntItem("German", 2);
- IntItem("Italian", 3);
- IntItem("Dutch", 4);
- IntItem("Swedish", 5);
- IntItem("Spanish", 6);
- IntItem("Danish", 7);
- IntItem("Portuguese", 8);
- IntItem("Norwegian", 9);
- IntItem("Hebrew", 10);
- IntItem("Japanese", 11);
- IntItem("Arabic", 12);
- IntItem("Finnish", 13);
- IntItem("Greek", 14);
- IntItem("Icelandic", 15);
- IntItem("Maltese", 16);
- IntItem("Turkish", 17);
- IntItem("Croatian", 18);
- IntItem("TradChinese", 19);
- IntItem("Urdu", 20);
- IntItem("Hindi", 21);
- IntItem("Thai", 22);
- IntItem("Korean", 23);
- IntItem("Lithuanian", 24);
- IntItem("Polish", 25);
- IntItem("Hungarian", 26);
- IntItem("Estonian", 27);
- IntItem("Lettish", 28);
- IntItem("Latvian", 28);
- IntItem("Lapponian", 29);
- IntItem("Lappish", 29);
- IntItem("Faeroese", 30);
- IntItem("Farsi", 31);
- IntItem("Persian", 31);
- IntItem("Russian", 32);
- IntItem("SimpChinese", 33);
- IntItem("Flemish", 34);
- IntItem("Irish", 35);
- IntItem("Albanian", 36);
- IntItem("Romanian", 37);
- IntItem("Czech", 38);
- IntItem("Slovak", 39);
- IntItem("Slovenian", 40);
- IntItem("Yiddish", 41);
- IntItem("Serbian", 42);
- IntItem("Macedonian", 43);
- IntItem("Bulgarian", 44);
- IntItem("Ukrainian", 45);
- IntItem("Byelorussian", 46);
- IntItem("Uzbek", 47);
- IntItem("Kazakh", 48);
- IntItem("Azerbaijani", 49);
- IntItem("AzerbaijanAr", 50);
- IntItem("Armenian", 51);
- IntItem("Georgian", 52);
- IntItem("Moldavian", 53);
- IntItem("Kirghiz", 54);
- IntItem("Tajiki", 55);
- IntItem("Turkmen", 56);
- IntItem("Mongolian", 57);
- IntItem("MongolianCyr", 58);
- IntItem("Pashto", 59);
- IntItem("Kurdish", 60);
- IntItem("Kashmiri", 61);
- IntItem("Sindhi", 62);
- IntItem("Tibetan", 63);
- IntItem("Nepali", 64);
- IntItem("Sanskrit", 65);
- IntItem("Marathi", 66);
- IntItem("Bengali", 67);
- IntItem("Assamese", 68);
- IntItem("Gujarati", 69);
- IntItem("Punjabi", 70);
- IntItem("Oriya", 71);
- IntItem("Malayalam", 72);
- IntItem("Kannada", 73);
- IntItem("Tamil", 74);
- IntItem("Telugu", 75);
- IntItem("Sinhalese", 76);
- IntItem("Burmese", 77);
- IntItem("Khmer", 78);
- IntItem("Lao", 79);
- IntItem("Vietnamese", 80);
- IntItem("Indonesian", 81);
- IntItem("Tagalog", 82);
- IntItem("MalayRoman", 83);
- IntItem("MalayArabic", 84);
- IntItem("Amharic", 85);
- IntItem("Tigrinya", 86);
- IntItem("Galla", 87);
- IntItem("Oromo", 87);
- IntItem("Somali", 88);
- IntItem("Swahili", 89);
- IntItem("Ruanda", 90);
- IntItem("Rundi", 91);
- IntItem("Chewa", 92);
- IntItem("Malagasy", 93);
- IntItem("Esperanto", 94);
- IntItem("Welsh", 128);
- IntItem("Basque", 129);
- IntItem("Catalan", 130);
- IntItem("Latin", 131);
- IntItem("Quechua", 132);
- IntItem("Guarani", 133);
- IntItem("Aymara", 134);
- IntItem("Tatar", 135);
- IntItem("Uighur", 136);
- IntItem("Dzongkha", 137);
- IntItem("JavaneseRom", 138);
- IntItem("SundaneseRom", 139);
- IntItem("Unspecified", 32767);
- };
-
- //----------------------------------------------------------------------------
- // Statement representing a list of subviews, as used in the FrameLayout
- // and SuperView definitions. Ideally the list of accepted class labels
- // in the "case" statements wouldn't be needed; it's required as a
- // workaround because "SELF" commands can only appear in Switch
- // statements in VDL code, but ResEdit doesn't permit a "SELF" to appear
- // in the default clause of a Switch.
- //
- // If you add your own custom type, you must add a "case" statement
- // for it here.
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("ViewList")
- Margin(5, 5, 5, 5)
- DynamicListMargin("Views:", fViews, Width = UseParent)
- DynamicVList(fViews, View, Width = UseParent)
- Switch(fLabel)
- {
- case 'view':
- case 'suvw':
- case 'cont':
- case 'ncnt':
- case 'butn':
- case 'popm':
- case 'scbr':
- case 'grbx':
- case 'lbox':
- case 'stxt':
- case 'gpbx':
- case 'edvw':
- case 'picv':
- case 'Pwdv':
- case 'Sedv':
- case 'Frmv':
- case 'rulr':
- case 'drvw':
- case 'ctvw':
- SELF
-
- default:
- HList()
- {
- StaticText("### unknown view class label: ");
- StaticText(fLabel);
- }
- }
-
- //----------------------------------------------------------------------------
- // "Font" and "String" are utility statements used by the many view
- // classes that include FW_RFont and FW_RStringData resource
- // information. The use of DynamicVList in both definitions is
- // a workaround; see the comments in the EDL code for details.
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("Font")
- Label("Font", Single, Width = UseParent)
- Margin(5, 0, 5, 5)
- VList(Width = UseParent)
- {
- HList()
- {
- EditText(fFontSize, Fixed(16, 16), Label = "Font size:", Width = 100, LabelWidth = 50, LabelAlignment = Right);
- EditText(fFontStyle, Label = "Style:", Width = 100, LabelWidth = 50, LabelAlignment = Right);
- }
-
- DynamicVList(fFontName, String, Width = UseParent)
- VList(Width = UseParent)
- {
- IncludeNamedStatement("ScriptCode");
- IncludeNamedStatement("LanguageCode");
- EditText(fFontName, Label = "Font name:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
- }
- }
-
- DeclareNamedStatement("String")
- Label("String", Single, Width = UseParent)
- Margin(5, 0, 5, 5)
- DynamicVList(fString, String, Width = UseParent)
- VList(Width = UseParent)
- {
- IncludeNamedStatement("ScriptCode");
- IncludeNamedStatement("LanguageCode");
- EditText(fString, Label = "String:", LabelWidth = 50, LabelAlignment = Right);
- }
-
- DeclareNamedStatement("Color")
- Label("Erase Color", Single, Width = UseParent)
- Margin(5, 5, 5, 5)
- VList(Width = UseParent)
- {
- EditText(fRed, Label = "Red:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
- Spacer(Height = 5);
-
- EditText(fGreen, Label = "Green:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
- Spacer(Height = 5);
-
- EditText(fBlue, Label = "Blue:", LabelWidth = 50, LabelAlignment = Right, Width = 150);
- Spacer(Height = 5);
- }
-
- //----------------------------------------------------------------------------
- // FW_RRadioCluster is defined in FWViews.fr; it's included here for
- // completeness and to allow editing of the custom view type defined
- // by the sample Form part.
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("RadioCluster")
- Label("Radio Cluster", Single)
- Margin(5, 5, 5, 5)
- VList(Width = UseParent)
- {
- HList()
- {
- StaticText("Class tag: ", Width = 50, Alignment = Right);
- StaticText(fClassTag, Width = 40);
-
- StaticText("Object Tag: ", Width = 60, Alignment = Right);
- StaticText(fObjectTag, Width = 40);
-
- StaticText("ViewClass: ", Width = 100, Alignment = Right);
- StaticText(fViewClass, Width = 50);
- }
-
- HList()
- {
- StaticText("Class ID: ", Width = 50, Alignment = Right);
- StaticText(fClassID, Width = 40);
-
- StaticText("Object ID: ", Width = 60, Alignment = Right);
- StaticText(fObjectID, Width = 40);
-
- StaticText("ViewID: ", Width = 100, Alignment = Right);
- StaticText(fViewID, Width = 50);
- }
-
- Spacer(Height = 5);
-
- DynamicListMargin("Radio Array:", fRadioArray, Width = 200)
- DynamicVList(fRadioArray, RadioEntry, Width = UseParent)
- Margin(2, 2, 2, 2)
- HList()
- {
- StaticText("RadioID #");
- StaticText(ContextElementIndex);
-
- Spacer(Width = 5);
-
- EditText(fRadioID, Width = 70);
- }
- }
-
- //----------------------------------------------------------------------------
- // The definitions for "Scroller" and "ScrollBarScroller" are used by
- // the FrameLayout class, defined below.
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("Scroller")
- VList(Width = UseParent)
- {
- HList()
- {
- StaticText("Class tag: ", Width = 50, Alignment = Right);
- StaticText(fClassTag, Width = 50);
-
- StaticText("ObjectTag: ", Width = 60, Alignment = Right);
- StaticText(fObjectTag, Width = 50);
-
- StaticText("EnclFrameClass: ", Width = 100, Alignment = Right);
-
- Switch(fEnclosureFrameClass)
- {
- case -2:
- StaticText("FW_kPrivNULLObjectID");
-
- default:
- StaticText(fEnclosureFrameClass, Width = 50);
- }
- }
-
- HList()
- {
- StaticText("Class ID: ", Width = 50, Alignment = Right);
- StaticText(fClassID, Width = 50);
-
- StaticText("Object ID: ", Width = 60, Alignment = Right);
- StaticText(fObjectID, Width = 50);
-
- StaticText("EnclFrameID: ", Width = 100, Alignment = Right);
-
- Switch(fEnclosureFrameID)
- {
- case -301:
- StaticText("FW_kPreregisteredRootViewObject");
-
- case -303:
- StaticText("FW_kPreregisteredFrameObject");
-
- default:
- StaticText(fEnclosureFrameID, Width = 50);
- }
- }
-
- Spacer(Height = 2);
-
- IntegerPopup("Label:", 53, fLabel)
- {
- IntItem("FW_RScroller", 'sclr');
- IntItem("FW_RScrollBarScroller", 'sbsc');
- };
-
- Spacer(Height = 2);
-
- EditText(fAutoScrollInset, Fixed(16, 16), Label = "Auto Scroll Inset:", Width = 170, LabelWidth = 100, LabelAlignment = Right);
-
- Spacer(Height = 2);
-
- HList()
- {
- EditText(fScrollUnitX, Fixed(16, 16), Label = "Scroll Unit X:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fScrollUnitY, Fixed(16, 16), Label = "Y:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
-
-
- // Un-comment the next line if you're editing an
- // ODF 2 part.
-
- //CheckBox("PageNavigationKeys", fPageNavigationKeys);
- }
-
- DeclareNamedStatement("ScrollBarScroller")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("Scroller");
- Spacer(Height = 2);
-
- // Un-comment the next line if you're editing an
- // ODF 2 part.
-
- //CheckBox("LiveScrolling", fLiveScrolling);
-
- HList()
- {
- EditText(fHorizViewID, Label = "HViewID:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fVertViewID, Label = "VViewID:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
- }
-
- //----------------------------------------------------------------------------
- // The following statement definitions contain VDL code corresponding
- // directly to the appropriate view type.
- //----------------------------------------------------------------------------
-
- DeclareNamedStatement("View")
- VList(Width = UseParent)
- {
- HList()
- {
- StaticText("Class tag: ", Width = 50, Alignment = Right);
- StaticText(fClassTag, Width = 40);
-
- StaticText("Object Tag: ", Width = 60, Alignment = Right);
- StaticText(fObjectTag, Width = 40);
-
- StaticText("ParentViewClass: ", Width = 100, Alignment = Right);
-
- Switch(fParentViewClass)
- {
- case -2:
- StaticText("FW_kPrivNULLObjectID");
-
- default:
- StaticText(fParentViewClass, Width = 50);
- }
- }
-
- HList()
- {
- StaticText("Class ID: ", Width = 50, Alignment = Right);
- StaticText(fClassID, Width = 40);
-
- StaticText("Object ID: ", Width = 60, Alignment = Right);
- StaticText(fObjectID, Width = 40);
-
- StaticText("ParentViewID: ", Width = 100, Alignment = Right);
-
- Switch(fParentViewID)
- {
- case -301:
- StaticText("FW_kPreregisteredRootViewObject");
-
- case -303:
- StaticText("FW_kPreregisteredFrameObject");
-
- default:
- StaticText(fParentViewID, Width = 50);
- }
- }
-
- Spacer(Height = 2);
-
- IntegerPopup("Label:", 53, fLabel)
- {
- IntItem("FW_RView", 'view');
- IntItem("FW_RSuperView", 'suvw');
- IntItem("FW_RControl", 'cont');
- IntItem("FW_RNativeControl", 'ncnt');
- IntItem("FW_RButton", 'butn');
- IntItem("FW_RPopUpMenu", 'popm');
- IntItem("FW_RScrollBar", 'scbr');
- IntItem("FW_RGrowBox", 'grbx');
- IntItem("FW_RListBox", 'lbox');
- IntItem("FW_RStaticText", 'stxt');
- IntItem("FW_RGroupBox", 'gpbx');
- IntItem("FW_REditView", 'edvw');
- IntItem("FW_RPictSView", 'picv');
-
- IntItem("PasswordView", 'Pwdv');
- IntItem("ScrollingEditView", 'Sedv');
- IntItem("Ruler", 'rulr');
- IntItem("DrawView", 'drvw');
- IntItem("ContainerView", 'ctvw');
- };
-
- Label("Bounds:", Single)
- Margin(0, 2, 5, 5)
- VList(Width = UseParent)
- {
- HList()
- {
- EditText(fLeft, Fixed(16, 16), Label = "Left:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fTop, Fixed(16, 16), Label = "Top:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
-
- Spacer(Height = 2);
-
- HList()
- {
- EditText(fRight, Fixed(16, 16), Label = "Right:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fBottom, Fixed(16, 16), Label = "Bottom:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
- }
-
- Spacer(Height = 5);
-
- IntegerPopup("Binding:", 53, fBinding)
- {
- IntItem("FW_kNoBinding", 0x00000000);
- IntItem("FW_kLeftBinding", 0x00000001);
- IntItem("FW_kRightBinding", 0x00000002);
- IntItem("FW_kTopBinding", 0x00000004);
- IntItem("FW_kBottomBinding", 0x00000008);
- IntItem("FW_kFixedWidth", 0x00000010);
- IntItem("FW_kFixedHeight", 0x00000020);
- IntItem("FW_kFixedLocation", 0x00000005);
- IntItem("FW_kFixedSize", 0x00000030);
- IntItem("FW_kFixedBounds", 0x00000035);
- IntItem("FW_kFitToEnclosure", 0x0000000F);
- IntItem("FW_kVScrollBarBinding", 0x0000001E);
- IntItem("FW_kHScrollBarBinding", 0x0000002B);
- IntItem("FW_kGrowBoxBinding", 0x0000003A);
- };
-
- Spacer(Height = 2);
- }
-
- DeclareNamedStatement("Control")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("View");
-
- EditText(fMessage, Label = "Message:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
-
- Margin(0, 2, 0, 2)
- IntegerPopup("Receiver:", 53, fReceiver)
- {
- IntItem("FW_kNoReceiver", 0);
- IntItem("FW_kViewReceiver", 1);
- IntItem("FW_kFrameReceiver", 2);
- };
-
- EditText(fInitialValue, Label = "Initial:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Height = 2);
- }
-
- DeclareNamedStatement("Button")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("Control");
-
- Margin(0, 0, 0, 2)
- IntegerPopup("Kind:", 53, fButtonKind)
- {
- IntItem("FW_kPushButton", 0);
- IntItem("FW_kRadioButton", 1);
- IntItem("FW_kCheckBox", 2);
- IntItem("FW_kDefaultPushButton", 3);
- };
-
- IncludeNamedStatement("Font");
- IncludeNamedStatement("String");
- }
-
- DeclareNamedStatement("PopUpMenu")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("Control");
- Spacer(Height = 2);
-
- EditText(fMacMenuID, Label = "MacMenuID:", LabelWidth = 80, LabelAlignment = Right, Width = 150);
- Spacer(Height = 2);
-
- EditText(fTitleWidth, Label = "TitleWidth:", LabelWidth = 80, LabelAlignment = Right, Width = 150);
- Spacer(Height = 2);
-
- EditText(fInitialMenuItem, Label = "InitialMenuItem:", LabelWidth = 80, LabelAlignment = Right, Width = 150);
- Spacer(Height = 2);
-
- EditText(fMenuVariation, Label = "MenuVariation:", LabelWidth = 80, LabelAlignment = Right, Width = 150);
- Spacer(Height = 2);
-
- EditText(fMenuRefCon, Label = "MenuRefCon:", LabelWidth = 80, LabelAlignment = Right, Width = 150);
- Spacer(Height = 2);
-
- IncludeNamedStatement("Font");
- IncludeNamedStatement("String");
- }
-
- DeclareNamedStatement("ScrollBar")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("Control");
-
- HList()
- {
- EditText(fMinValue, Label = "MinValue:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fMaxValue, Label = "MaxValue:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
-
- Spacer(Height = 2);
-
- HList()
- {
- EditText(fMajorUnits, Fixed(16, 16), Label = "MajUnit:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fMinorUnits, Fixed(16, 16), Label = "MinUnit:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
- }
-
- DeclareNamedStatement("ListBox")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("View");
-
- EditText(fNumRows, Label = "NumRows:", Width = 150, LabelWidth = 80, LabelAlignment = Right);
-
- CheckBox("VerticalSB", fVerticalSB);
- CheckBox("SingleSelection", fSingleSelection);
- CheckBox("UseFocusFrame", fUseFocusFrame);
- CheckBox("UseClientData", fUseClientData);
-
- EditText(fDblClickMessage, Label = "DblClickMessage:", Width = 150, LabelWidth = 80, LabelAlignment = Right);
-
- IncludeNamedStatement("Font");
-
- DynamicVList(fStrings, String, Width = UseParent)
- IncludeNamedStatement("String");
- }
-
- DeclareNamedStatement("StaticText")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("View");
- IncludeNamedStatement("Font");
-
- // Un-comment the next line if you're editing an ODF 2 part.
- // IncludeNamedStatement("Color");
-
- IncludeNamedStatement("String");
- }
-
- DeclareNamedStatement("EditView")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("View");
-
- EditText(fMaxChars, Label = "MaxChars:", Width = 150, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Height = 2);
-
- EditText(fAttributes, Label = "Attribs:", Width = 150, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Height = 2);
-
- IncludeNamedStatement("Font");
- IncludeNamedStatement("String");
- }
-
- DeclareNamedStatement("SuperView")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("View");
-
- HList()
- {
- EditText(fExtentX, Fixed(16, 16), Label = "Extent X:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fExtentY, Fixed(16, 16), Label = "Extent Y:", Width = 120, LabelWidth = 50, LabelAlignment = Right);
- }
-
- CheckBox("IsContentView", fIsContentView);
-
- Spacer(Height = 2);
-
- IntegerPopup("Direction:", 53, fScrollingDirection)
- {
- IntItem("FW_kNoScrolling", 0x00000000);
- IntItem("FW_kXScrolling", 0x00000001);
- IntItem("FW_kYScrolling", 0x00000010);
- IntItem("FW_kXYScrolling", 0x00000011);
- };
-
- Spacer(Height = 2);
-
- IncludeNamedStatement("ViewList");
- }
-
- DeclareNamedStatement("PicView")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("SuperView");
-
- EditText(fPictureID, Label = "PictureID:", Width = 150, LabelWidth = 50, LabelAlignment = Right);
- }
-
- DeclareNamedStatement("FormView")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("PicView");
-
- Spacer(Height = 2);
- EditText(fPictureID, Label = "Picture2:", Width = 150, LabelWidth = 50, LabelAlignment = Right);
-
- DynamicVList(fRadioClusters, RadioCluster, Width = UseParent)
- IncludeNamedStatement("RadioCluster");
- }
-
- DeclareNamedStatement("ScrollingEditView")
- VList(Width = UseParent)
- {
- IncludeNamedStatement("EditView");
-
- Spacer(Height = 5);
-
- HList()
- {
- EditText(fVertViewID, Label = "HorizViewID:", Width = 130, LabelWidth = 70, LabelAlignment = Right);
- Spacer(Width = 10);
- EditText(fHorizViewID, Label = "VertViewID:", Width = 130, LabelWidth = 70, LabelAlignment = Right);
- }
-
- Spacer(Height = 2);
-
- EditText(fTextWidth, Fixed(16, 16), Label = "TextWidth:", Width = 160, LabelWidth = 70, LabelAlignment = Right);
- }
-
- DeclareNamedStatement("FrameLayout")
- Margin(5, 5, 5, 5)
- VList(Width = UseParent)
- {
- Margin(5, 5, 5, 5)
- VList(Width = UseParent)
- {
- StaticText("Layout size:");
- Spacer(Height = 2);
-
- EditText(fLayoutSizeX, Fixed(16, 16), Label = "X:", Width = 100, LabelWidth = 20, LabelAlignment = Right);
- Spacer(Height = 2);
-
- EditText(fLayoutSizeY, Fixed(16, 16), Label = "Y:", Width = 100, LabelWidth = 20, LabelAlignment = Right);
- }
-
- IncludeNamedStatement("ViewList");
-
- Spacer(Height = 10);
-
- DynamicListMargin("Scrollers:", fScrollers, Width = UseParent)
- DynamicVList(fScrollers, Scroller, Width = UseParent)
- Switch(fLabel)
- {
- case 'sclr':
- IncludeNamedStatement("Scroller");
-
- case 'sbsc':
- IncludeNamedStatement("ScrollBarScroller");
-
- default:
- HList()
- {
- StaticText("### unknown scroller class label: ");
- StaticText(fLabel);
- }
- }
- }
-
- //----------------------------------------------------------------------------
- // Main statement. The Switch calls the appropriate named statement
- // for each class label encountered.
- //
- // If you want to add support for your own custom view types and
- // your types add additional fields to the standard ones, you
- // can define a new named statement that includes the standard
- // statement for the class from which you derive, and add a "case"
- // calling that statement below. If you don't add any custom fields,
- // just add another "case" label below the one for the class
- // you're extending.
- //----------------------------------------------------------------------------
-
- Margin(2, 2, 2, 2)
- Margin(5, 5, 5, 5, Single)
- Switch(fLabel)
- {
- case 'root':
- IncludeNamedStatement("FrameLayout");
-
- case 'view':
- case 'grbx':
- IncludeNamedStatement("View");
-
- case 'suvw':
- case 'rulr':
- case 'drvw':
- case 'ctvw':
- IncludeNamedStatement("SuperView");
-
- case 'cont':
- case 'ncnt':
- IncludeNamedStatement("Control");
-
- case 'butn':
- IncludeNamedStatement("Button");
-
- case 'popm':
- IncludeNamedStatement("PopUpMenu");
-
- case 'scbr':
- IncludeNamedStatement("ScrollBar");
-
- case 'lbox':
- IncludeNamedStatement("ListBox");
-
- case 'stxt':
- case 'gpbx':
- IncludeNamedStatement("StaticText");
-
- case 'picv':
- IncludeNamedStatement("PicView");
-
- case 'edvw':
- case 'Pwdv':
- IncludeNamedStatement("EditView");
-
- case 'Sedv':
- IncludeNamedStatement("ScrollingEditView");
-
- case 'Frmv':
- IncludeNamedStatement("FormView");
-
- default:
- HList()
- {
- StaticText("### unknown view class label: ");
- StaticText(fLabel);
- }
- }
-